package com.hmy.finance.common.constants;

public interface CommonConstants {
    /**
     * 未删除
     */
    int NOT_DELETED = 0;

    String CURRENT_PERIOD = "CURRENT";
    String UNEXPIRED_PERIOD = "UNEXPIRED";

    /**
     * 分布式锁前缀
     */
    String LOCK_PREFIX = "lock:";

    /**
     * 客户账户分布式锁前缀
     */
    String CUSTOMER_BALANCE_ACCOUNT_LOCK_PREFIX = LOCK_PREFIX + "customerBalanceAccountLock:";

    /**
     * 联系人账户分布式锁前缀
     */
    String CONTACTOR_BALANCE_ACCOUNT_LOCK_PREFIX = LOCK_PREFIX + "contactorBalanceAccountLock:";
    /**
     * 合同终止停止记录状态 - 退场中
     */
    Integer CONTRACT_TERMINATION_STOP_RECORD_STATUS_STOPPING = 1;
    /**
     * 合同终止停止记录状态 - 退场成功
     */
    Integer CONTRACT_TERMINATION_STOP_RECORD_STATUS_STOPPED = 2;
    /**
     * 合同终止停止记录状态 - 退场取消
     */
    Integer CONTRACT_TERMINATION_STOP_RECORD_STATUS_CANCELLED = 3;
}
